﻿using System;
using System.ComponentModel.Composition.Hosting;

namespace OperationPlugins
{
    /// <summary>
    /// Provides information for the framework initialization.
    /// </summary>
    public sealed class InitializationContext
    {
        public InitializationContext(CompositionContainer compositionContainer)
        {
            if (compositionContainer == null)
            {
                throw new ArgumentNullException("compositionContainer");
            }

            CompositionContainer = compositionContainer;
        }

        /// <summary>
        /// Gets the composition container.
        /// </summary>
        public CompositionContainer CompositionContainer { get; private set; }
    }
}
